package com.lanou3g.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Test2Controller {
    @RequestMapping("/test1")//设置路径,其实设置这个路径就是value="/test1",如果里面有多个路径,value不能省
    public String test1() {
        System.out.println("test1----------------------------");
        //返回逻辑视图index,获得物理视图/index.jsp
        return "index";
    }
}
